import { defineStore } from 'pinia'
import {userGetList} from '../API/user-API'

export const useUserList = defineStore('storeUser',{
    state:() =>{
        return {
            list:[]
        }
    },
    getters:{

    },
    actions:{
        // 用户列表
        async getUserList() {
            const res = await userGetList();
            console.log(res.data);
            this.list = res.data
        }
    }
})